<div class="contentBox">
            <div class="contentBoxTop">
              <h3>Manage images: <?php echo $pro_name; ?></h3>
            </div>
            <div class="innerContent">
                
                <form id="form1" name="form1" method="post" action="" enctype="multipart/form-data">
                    <p>
                        <label>Image main: </label><input type="file" name="img_main">
                        <input type="submit" name="sub_main" value="add/edit">
                    </p>
                    <p>
                        <label>Images: </label><input type="file" name="imgs[]" multiple="multiple"> 
                        <input type="submit" name="sub_imgs" value="add">
                    </p>
                   
              </form>
                <table class="sTable">
                     
		<thead>
                  <tr>
                    <th><strong>Image main</strong></th>
                    <th><strong>Images</strong></th>
                   
                    </tr>
                </thead>
                
                <tr class="oddRow">
                    <td style="padding-right: 10px;">
                        <?php foreach ($img_main as $img) 
                        {?>
                        <img src="<?php echo $img['pro_img_src'];?>" height="180" width="180">
                        <?php }?>
                    </td>
                    <td style="text-align: left;">
                        <?php foreach ($list_img as $imgs) 
                        {?>
                        <a style=" color: red; font-weight: bold;" href="<?php echo $baseURL; ?>admin/product/manage_img/<?php echo $pro_id;?>/delete/<?php echo $imgs['id'];?>">X</a>
                        <img src="<?php echo $imgs['pro_img_src'];?>" height="150" width="150">
                        <?php }?>
                        
                    </td>
                    
                </tr>
                
                    
                   </table>
            </div><!--end of #box-3-->
          </div>